package com.scau402.system1.domain.factory;

import cn.hutool.core.bean.BeanUtil;
import com.scau402.system1.domain.vo.WmsCheckBoundOrderDetailVO;
import com.scau402.system1.domain.po.WmsCheckboundOrderDetailPO;
import com.scau402.system1.mapper.WmsWarehouseMapper;
import com.scau402.system1.mapper.WmsWarehouseStorageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 盘点实体工厂类
 * @since 2024/2/4
 */
@Component
public class WmsCheckBoundOrderFactory {
    @Autowired
    private WmsWarehouseMapper warehouseMapper;
    @Autowired
    private WmsWarehouseStorageMapper storageMapper;
    /**
     * 盘点详情PO转DTO
     * @param po 盘点详情PO
     * @return 盘点详情DTO
     * @since 2024/2/4
     */
    public WmsCheckBoundOrderDetailVO detailPOToDTO(WmsCheckboundOrderDetailPO po){
        WmsCheckBoundOrderDetailVO dto = new WmsCheckBoundOrderDetailVO();
        BeanUtil.copyProperties(po, dto);
        return dto;
    }

}
